Memory Overview
Memory enables BindAI agents to remember information across conversations and executions. Without memory, every interaction is independent. With memory enabled, an agent can retain context, remember previous discussions, and build more natural long-term conversations. Memory is one of the core building blocks of BindAI and integrates seamlessly with agents, workflows, and projects.What is Memory?
Memory stores information that an agent can retrieve later. Examples include:- previous conversations
- user preferences
- important facts
- long-term context
- execution history
Why Memory Matters
Consider the following conversation.Memory Architecture
A simplified view of the memory flow:- Previous memories are loaded.
- The language model receives them as context.
- A response is generated.
- New conversation data is stored back into memory.
Conversation Memory
The most common form of memory stores previous messages. Example:Long-Term Memory
Memory is not limited to a single conversation. Depending on the provider, information may persist across:- multiple chats
- multiple sessions
- application restarts
- different workflow executions
Memory Providers
BindAI separates memory behavior from storage. Examples include:- in-memory storage
- databases
- Redis
- vector databases
- cloud storage
Memory Lifecycle
A typical execution looks like this:Agent Integration
Every BindAI agent includes memory support.Workflow Integration
Memory also works inside workflows. For example:Memory vs Knowledge
Although related, Memory and Knowledge solve different problems.
Use Memory to remember interactions.
Use Knowledge to retrieve facts from documents.
Memory vs Variables
Workflow variables exist only during execution. Memory persists beyond execution.Benefits
Using memory provides several advantages:- more natural conversations
- personalized responses
- reduced repetition
- better contextual understanding
- improved multi-step interactions
Best Practices
- Store only useful information.
- Avoid saving unnecessary data.
- Choose an appropriate provider for your workload.
- Keep memory focused on user context.
- Use Knowledge for documents instead of Memory.
- Regularly review retention requirements for production systems.
